home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2002-08-08 | 6.9 KB | [□□□□/□□□□] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Ultima 6 (music/ultima6)
| ext
| Supported |
1%
| dexvert
| PC-98 Music (music/pc98Music)
| ext
| Unsupported |
1%
| dexvert
| Amiga E Module (other/amigaEModule)
| ext
| Unsupported |
1%
| dexvert
| ECX module (other/ecxModule)
| ext
| Unsupported |
1%
| dexvert
| Maple Common Binary (other/mapleCommonBinary)
| ext
| Unsupported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Aug 8 17:19:35 2002, modified Thu Aug 8 17:19:35 2002, 6467 bytes "URLName.m" , at 0x19c3 286 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
| |
100%
| librempegprobeID
| NGC (Nintendo DSP Standard) (ngcdspstd)
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [□□□□] |
macFileCreator | [□□□□] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 55 52 4c 4e 61 6d | 65 2e 6d 00 00 00 00 00 |..URLNam|e.m.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 01 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 19 43 00 | 00 01 1e b9 78 90 e7 b9 |......C.|....x...|
|00000060| 78 90 e7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |x.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c7 41 00 00 |........|.....A..|
|00000080| 2f 2a 0a 2a 2a 20 20 55 | 52 4c 4e 61 6d 65 2e 6d |/*.** U|RLName.m|
|00000090| 0a 2a 2a 0a 2a 2a 20 20 | 43 6f 70 79 72 69 67 68 |.**.** |Copyrigh|
|000000a0| 74 20 28 63 29 20 32 30 | 30 31 2c 20 32 30 30 32 |t (c) 20|01, 2002|
|000000b0| 0a 2a 2a 0a 2a 2a 20 20 | 41 75 74 68 6f 72 3a 20 |.**.** |Author: |
|000000c0| 4c 75 64 6f 76 69 63 20 | 4d 61 72 63 6f 74 74 65 |Ludovic |Marcotte|
|000000d0| 20 3c 6c 75 64 6f 76 69 | 63 40 53 6f 70 68 6f 73 | <ludovi|c@Sophos|
|000000e0| 2e 63 61 3e 0a 2a 2a 0a | 2a 2a 20 20 54 68 69 73 |.ca>.**.|** This|
|000000f0| 20 6c 69 62 72 61 72 79 | 20 69 73 20 66 72 65 65 | library| is free|
|00000100| 20 73 6f 66 74 77 61 72 | 65 3b 20 79 6f 75 20 63 | softwar|e; you c|
|00000110| 61 6e 20 72 65 64 69 73 | 74 72 69 62 75 74 65 20 |an redis|tribute |
|00000120| 69 74 20 61 6e 64 2f 6f | 72 0a 2a 2a 20 20 6d 6f |it and/o|r.** mo|
|00000130| 64 69 66 79 20 69 74 20 | 75 6e 64 65 72 20 74 68 |dify it |under th|
|00000140| 65 20 74 65 72 6d 73 20 | 6f 66 20 74 68 65 20 47 |e terms |of the G|
|00000150| 4e 55 20 4c 65 73 73 65 | 72 20 47 65 6e 65 72 61 |NU Lesse|r Genera|
|00000160| 6c 20 50 75 62 6c 69 63 | 0a 2a 2a 20 20 4c 69 63 |l Public|.** Lic|
|00000170| 65 6e 73 65 20 61 73 20 | 70 75 62 6c 69 73 68 65 |ense as |publishe|
|00000180| 64 20 62 79 20 74 68 65 | 20 46 72 65 65 20 53 6f |d by the| Free So|
|00000190| 66 74 77 61 72 65 20 46 | 6f 75 6e 64 61 74 69 6f |ftware F|oundatio|
|000001a0| 6e 3b 20 65 69 74 68 65 | 72 0a 2a 2a 20 20 76 65 |n; eithe|r.** ve|
|000001b0| 72 73 69 6f 6e 20 32 2e | 31 20 6f 66 20 74 68 65 |rsion 2.|1 of the|
|000001c0| 20 4c 69 63 65 6e 73 65 | 2c 20 6f 72 20 28 61 74 | License|, or (at|
|000001d0| 20 79 6f 75 72 20 6f 70 | 74 69 6f 6e 29 20 61 6e | your op|tion) an|
|000001e0| 79 20 6c 61 74 65 72 20 | 76 65 72 73 69 6f 6e 2e |y later |version.|
|000001f0| 0a 2a 2a 20 20 0a 2a 2a | 20 20 54 68 69 73 20 6c |.** .**| This l|
|00000200| 69 62 72 61 72 79 20 69 | 73 20 64 69 73 74 72 69 |ibrary i|s distri|
|00000210| 62 75 74 65 64 20 69 6e | 20 74 68 65 20 68 6f 70 |buted in| the hop|
|00000220| 65 20 74 68 61 74 20 69 | 74 20 77 69 6c 6c 20 62 |e that i|t will b|
|00000230| 65 20 75 73 65 66 75 6c | 2c 0a 2a 2a 20 20 62 75 |e useful|,.** bu|
|00000240| 74 20 57 49 54 48 4f 55 | 54 20 41 4e 59 20 57 41 |t WITHOU|T ANY WA|
|00000250| 52 52 41 4e 54 59 3b 20 | 77 69 74 68 6f 75 74 20 |RRANTY; |without |
|00000260| 65 76 65 6e 20 74 68 65 | 20 69 6d 70 6c 69 65 64 |even the| implied|
|00000270| 20 77 61 72 72 61 6e 74 | 79 20 6f 66 0a 2a 2a 20 | warrant|y of.** |
|00000280| 20 4d 45 52 43 48 41 4e | 54 41 42 49 4c 49 54 59 | MERCHAN|TABILITY|
|00000290| 20 6f 72 20 46 49 54 4e | 45 53 53 20 46 4f 52 20 | or FITN|ESS FOR |
|000002a0| 41 20 50 41 52 54 49 43 | 55 4c 41 52 20 50 55 52 |A PARTIC|ULAR PUR|
|000002b0| 50 4f 53 45 2e 20 53 65 | 65 20 74 68 65 20 47 4e |POSE. Se|e the GN|
|000002c0| 55 0a 2a 2a 20 20 4c 65 | 73 73 65 72 20 47 65 6e |U.** Le|sser Gen|
|000002d0| 65 72 61 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |eral Pub|lic Lice|
|000002e0| 6e 73 65 20 66 6f 72 20 | 6d 6f 72 65 20 64 65 74 |nse for |more det|
|000002f0| 61 69 6c 73 2e 0a 2a 2a | 20 20 0a 2a 2a 20 20 59 |ails..**| .** Y|
|00000300| 6f 75 20 73 68 6f 75 6c | 64 20 68 61 76 65 20 72 |ou shoul|d have r|
|00000310| 65 63 65 69 76 65 64 20 | 61 20 63 6f 70 79 20 6f |eceived |a copy o|
|00000320| 66 20 74 68 65 20 47 4e | 55 20 4c 65 73 73 65 72 |f the GN|U Lesser|
|00000330| 20 47 65 6e 65 72 61 6c | 20 50 75 62 6c 69 63 0a | General| Public.|
|00000340| 2a 2a 20 20 4c 69 63 65 | 6e 73 65 20 61 6c 6f 6e |** Lice|nse alon|
|00000350| 67 20 77 69 74 68 20 74 | 68 69 73 20 6c 69 62 72 |g with t|his libr|
|00000360| 61 72 79 3b 20 69 66 20 | 6e 6f 74 2c 20 77 72 69 |ary; if |not, wri|
|00000370| 74 65 20 74 6f 20 74 68 | 65 20 46 72 65 65 20 53 |te to th|e Free S|
|00000380| 6f 66 74 77 61 72 65 0a | 2a 2a 20 20 46 6f 75 6e |oftware.|** Foun|
|00000390| 64 61 74 69 6f 6e 2c 20 | 49 6e 63 2e 2c 20 35 39 |dation, |Inc., 59|
|000003a0| 20 54 65 6d 70 6c 65 20 | 50 6c 61 63 65 2c 20 53 | Temple |Place, S|
|000003b0| 75 69 74 65 20 33 33 30 | 2c 20 42 6f 73 74 6f 6e |uite 330|, Boston|
|000003c0| 2c 20 4d 41 20 30 32 31 | 31 31 2d 31 33 30 37 20 |, MA 021|11-1307 |
|000003d0| 55 53 41 0a 2a 2f 0a 23 | 69 6d 70 6f 72 74 20 3c |USA.*/.#|import <|
|000003e0| 50 61 6e 74 6f 6d 69 6d | 65 2f 55 52 4c 4e 61 6d |Pantomim|e/URLNam|
|000003f0| 65 2e 68 3e 0a 0a 23 69 | 6d 70 6f 72 74 20 3c 50 |e.h>..#i|mport <P|
|00000400| 61 6e 74 6f 6d 69 6d 65 | 2f 43 6f 6e 73 74 61 6e |antomime|/Constan|
|00000410| 74 73 2e 68 3e 0a 0a 40 | 69 6d 70 6c 65 6d 65 6e |ts.h>..@|implemen|
|00000420| 74 61 74 69 6f 6e 20 55 | 52 4c 4e 61 6d 65 0a 0a |tation U|RLName..|
|00000430| 2d 20 28 69 64 29 20 69 | 6e 69 74 57 69 74 68 53 |- (id) i|nitWithS|
|00000440| 74 72 69 6e 67 3a 20 28 | 4e 53 53 74 72 69 6e 67 |tring: (|NSString|
|00000450| 20 2a 29 20 74 68 65 53 | 74 72 69 6e 67 0a 7b 0a | *) theS|tring.{.|
|00000460| 20 20 72 65 74 75 72 6e | 20 5b 73 65 6c 66 20 69 | return| [self i|
|00000470| 6e 69 74 57 69 74 68 53 | 74 72 69 6e 67 3a 20 74 |nitWithS|tring: t|
|00000480| 68 65 53 74 72 69 6e 67 | 0a 09 20 20 20 20 20 20 |heString|.. |
|00000490| 20 70 61 74 68 3a 20 6e | 69 6c 5d 3b 0a 7d 0a 0a | path: n|il];.}..|
|000004a0| 2d 20 28 69 64 29 20 69 | 6e 69 74 57 69 74 68 53 |- (id) i|nitWithS|
|000004b0| 74 72 69 6e 67 3a 20 28 | 4e 53 53 74 72 69 6e 67 |tring: (|NSString|
|000004c0| 20 2a 29 20 74 68 65 53 | 74 72 69 6e 67 0a 09 09 | *) theS|tring...|
|000004d0| 20 70 61 74 68 3a 20 28 | 4e 53 53 74 72 69 6e 67 | path: (|NSString|
|000004e0| 20 2a 29 20 74 68 65 50 | 61 74 68 0a 7b 0a 20 20 | *) theP|ath.{. |
|000004f0| 73 65 6c 66 20 3d 20 5b | 73 75 70 65 72 20 69 6e |self = [|super in|
|00000500| 69 74 5d 3b 0a 0a 20 20 | 2f 2f 20 57 65 20 69 6e |it];.. |// We in|
|00000510| 69 74 69 61 6c 69 7a 65 | 20 6f 75 72 20 69 76 61 |itialize| our iva|
|00000520| 72 73 0a 20 20 70 72 6f | 74 6f 63 6f 6c 20 3d 20 |rs. pro|tocol = |
|00000530| 6e 69 6c 3b 0a 20 20 66 | 6f 6c 64 65 72 6e 61 6d |nil;. f|oldernam|
|00000540| 65 20 3d 20 6e 69 6c 3b | 0a 20 20 68 6f 73 74 20 |e = nil;|. host |
|00000550| 3d 20 6e 69 6c 3b 0a 20 | 20 70 6f 72 74 20 3d 20 |= nil;. | port = |
|00000560| 30 3b 0a 20 20 75 73 65 | 72 6e 61 6d 65 20 3d 20 |0;. use|rname = |
|00000570| 6e 69 6c 3b 0a 20 20 70 | 61 73 73 77 6f 72 64 20 |nil;. p|assword |
|00000580| 3d 20 6e 69 6c 3b 0a 20 | 0a 20 20 70 61 74 68 20 |= nil;. |. path |
|00000590| 3d 20 74 68 65 50 61 74 | 68 3b 0a 20 20 0a 20 20 |= thePat|h;. . |
|000005a0| 69 66 20 28 20 70 61 74 | 68 20 29 0a 20 20 20 20 |if ( pat|h ). |
|000005b0| 7b 0a 20 20 20 20 20 20 | 52 45 54 41 49 4e 28 70 |{. |RETAIN(p|
|000005c0| 61 74 68 29 3b 0a 20 20 | 20 20 7d 0a 0a 20 20 2f |ath);. | }.. /|
|000005d0| 2f 20 57 65 20 6e 6f 77 | 20 64 65 63 6f 64 65 20 |/ We now| decode |
|000005e0| 6f 75 72 20 55 52 4c 0a | 20 20 5b 73 65 6c 66 20 |our URL.| [self |
|000005f0| 5f 64 65 63 6f 64 65 55 | 52 4c 3a 20 74 68 65 53 |_decodeU|RL: theS|
|00000600| 74 72 69 6e 67 5d 3b 0a | 20 20 0a 20 20 72 65 74 |tring];.| . ret|
|00000610| 75 72 6e 20 73 65 6c 66 | 3b 0a 7d 0a 0a 2d 20 28 |urn self|;.}..- (|
|00000620| 76 6f 69 64 29 20 64 65 | 61 6c 6c 6f 63 0a 7b 0a |void) de|alloc.{.|
|00000630| 20 20 54 45 53 54 5f 52 | 45 4c 45 41 53 45 28 70 | TEST_R|ELEASE(p|
|00000640| 72 6f 74 6f 63 6f 6c 29 | 3b 0a 20 20 54 45 53 54 |rotocol)|;. TEST|
|00000650| 5f 52 45 4c 45 41 53 45 | 28 66 6f 6c 64 65 72 6e |_RELEASE|(foldern|
|00000660| 61 6d 65 29 3b 0a 20 20 | 54 45 53 54 5f 52 45 4c |ame);. |TEST_REL|
|00000670| 45 41 53 45 28 70 61 74 | 68 29 3b 0a 20 20 54 45 |EASE(pat|h);. TE|
|00000680| 53 54 5f 52 45 4c 45 41 | 53 45 28 68 6f 73 74 29 |ST_RELEA|SE(host)|
|00000690| 3b 0a 20 20 54 45 53 54 | 5f 52 45 4c 45 41 53 45 |;. TEST|_RELEASE|
|000006a0| 28 75 73 65 72 6e 61 6d | 65 29 3b 0a 20 20 54 45 |(usernam|e);. TE|
|000006b0| 53 54 5f 52 45 4c 45 41 | 53 45 28 70 61 73 73 77 |ST_RELEA|SE(passw|
|000006c0| 6f 72 64 29 3b 0a 20 20 | 0a 20 20 5b 73 75 70 65 |ord);. |. [supe|
|000006d0| 72 20 64 65 61 6c 6c 6f | 63 5d 3b 0a 7d 0a 0a 0a |r deallo|c];.}...|
|000006e0| 2f 2f 0a 2f 2f 20 61 63 | 63 65 73 73 2f 6d 75 74 |//.// ac|cess/mut|
|000006f0| 61 74 69 6f 6e 20 6d 65 | 74 68 6f 64 73 0a 2f 2f |ation me|thods.//|
|00000700| 0a 2d 20 28 4e 53 53 74 | 72 69 6e 67 20 2a 29 20 |.- (NSSt|ring *) |
|00000710| 70 72 6f 74 6f 63 6f 6c | 0a 7b 0a 20 20 72 65 74 |protocol|.{. ret|
|00000720| 75 72 6e 20 70 72 6f 74 | 6f 63 6f 6c 3b 0a 7d 0a |urn prot|ocol;.}.|
|00000730| 0a 2d 20 28 4e 53 53 74 | 72 69 6e 67 20 2a 29 20 |.- (NSSt|ring *) |
|00000740| 66 6f 6c 64 65 72 6e 61 | 6d 65 0a 7b 0a 20 20 72 |folderna|me.{. r|
|00000750| 65 74 75 72 6e 20 66 6f | 6c 64 65 72 6e 61 6d 65 |eturn fo|ldername|
|00000760| 3b 0a 7d 0a 0a 2d 20 28 | 4e 53 53 74 72 69 6e 67 |;.}..- (|NSString|
|00000770| 20 2a 29 20 70 61 74 68 | 0a 7b 0a 20 20 72 65 74 | *) path|.{. ret|
|00000780| 75 72 6e 20 70 61 74 68 | 3b 0a 7d 0a 0a 2d 20 28 |urn path|;.}..- (|
|00000790| 4e 53 53 74 72 69 6e 67 | 20 2a 29 20 68 6f 73 74 |NSString| *) host|
|000007a0| 3b 0a 7b 0a 20 20 72 65 | 74 75 72 6e 20 68 6f 73 |;.{. re|turn hos|
|000007b0| 74 3b 0a 7d 0a 0a 2d 20 | 28 69 6e 74 29 20 70 6f |t;.}..- |(int) po|
|000007c0| 72 74 0a 7b 0a 20 20 72 | 65 74 75 72 6e 20 70 6f |rt.{. r|eturn po|
|000007d0| 72 74 3b 0a 7d 0a 0a 2d | 20 28 4e 53 53 74 72 69 |rt;.}..-| (NSStri|
|000007e0| 6e 67 20 2a 29 20 75 73 | 65 72 6e 61 6d 65 0a 7b |ng *) us|ername.{|
|000007f0| 0a 20 20 72 65 74 75 72 | 6e 20 75 73 65 72 6e 61 |. retur|n userna|
|00000800| 6d 65 3b 0a 7d 0a 0a 2d | 20 28 4e 53 53 74 72 69 |me;.}..-| (NSStri|
|00000810| 6e 67 20 2a 29 20 70 61 | 73 73 77 6f 72 64 0a 7b |ng *) pa|ssword.{|
|00000820| 0a 20 20 72 65 74 75 72 | 6e 20 70 61 73 73 77 6f |. retur|n passwo|
|00000830| 72 64 3b 0a 7d 0a 0a 2d | 20 28 4e 53 53 74 72 69 |rd;.}..-| (NSStri|
|00000840| 6e 67 20 2a 29 20 64 65 | 73 63 72 69 70 74 69 6f |ng *) de|scriptio|
|00000850| 6e 0a 7b 0a 20 20 72 65 | 74 75 72 6e 20 5b 4e 53 |n.{. re|turn [NS|
|00000860| 53 74 72 69 6e 67 20 73 | 74 72 69 6e 67 57 69 74 |String s|tringWit|
|00000870| 68 46 6f 72 6d 61 74 3a | 20 40 22 70 72 6f 74 6f |hFormat:| @"proto|
|00000880| 63 6f 6c 20 3d 20 28 25 | 40 29 2c 20 66 6f 6c 64 |col = (%|@), fold|
|00000890| 65 72 6e 61 6d 65 20 3d | 20 28 25 40 29 2c 20 70 |ername =| (%@), p|
|000008a0| 61 74 68 20 3d 20 28 25 | 40 29 2c 20 68 6f 73 74 |ath = (%|@), host|
|000008b0| 20 3d 20 28 25 40 29 2c | 20 70 6f 72 74 20 3d 20 | = (%@),| port = |
|000008c0| 28 25 64 29 2c 20 75 73 | 65 72 6e 61 6d 65 20 3d |(%d), us|ername =|
|000008d0| 20 28 25 40 29 2c 20 70 | 61 73 73 77 6f 72 64 20 | (%@), p|assword |
|000008e0| 3d 20 28 25 40 29 22 2c | 0a 09 09 20 20 20 5b 73 |= (%@)",|... [s|
|000008f0| 65 6c 66 20 70 72 6f 74 | 6f 63 6f 6c 5d 2c 20 5b |elf prot|ocol], [|
|00000900| 73 65 6c 66 20 66 6f 6c | 64 65 72 6e 61 6d 65 5d |self fol|dername]|
|00000910| 2c 20 5b 73 65 6c 66 20 | 70 61 74 68 5d 2c 20 5b |, [self |path], [|
|00000920| 73 65 6c 66 20 68 6f 73 | 74 5d 2c 20 5b 73 65 6c |self hos|t], [sel|
|00000930| 66 20 70 6f 72 74 5d 2c | 20 5b 73 65 6c 66 20 75 |f port],| [self u|
|00000940| 73 65 72 6e 61 6d 65 5d | 2c 20 5b 73 65 6c 66 20 |sername]|, [self |
|00000950| 70 61 73 73 77 6f 72 64 | 5d 5d 3b 0a 7d 0a 0a 2d |password|]];.}..-|
|00000960| 20 28 4e 53 53 74 72 69 | 6e 67 20 2a 29 20 73 74 | (NSStri|ng *) st|
|00000970| 72 69 6e 67 56 61 6c 75 | 65 0a 7b 0a 20 20 69 66 |ringValu|e.{. if|
|00000980| 20 28 20 5b 5b 73 65 6c | 66 20 70 72 6f 74 6f 63 | ( [[sel|f protoc|
|00000990| 6f 6c 5d 20 63 61 73 65 | 49 6e 73 65 6e 73 69 74 |ol] case|Insensit|
|000009a0| 69 76 65 43 6f 6d 70 61 | 72 65 3a 20 40 22 4c 4f |iveCompa|re: @"LO|
|000009b0| 43 41 4c 22 5d 20 3d 3d | 20 4e 53 4f 72 64 65 72 |CAL"] ==| NSOrder|
|000009c0| 65 64 53 61 6d 65 20 29 | 0a 20 20 20 20 7b 0a 20 |edSame )|. {. |
|000009d0| 20 20 20 20 20 72 65 74 | 75 72 6e 20 5b 4e 53 53 | ret|urn [NSS|
|000009e0| 74 72 69 6e 67 20 73 74 | 72 69 6e 67 57 69 74 68 |tring st|ringWith|
|000009f0| 46 6f 72 6d 61 74 3a 20 | 40 22 6c 6f 63 61 6c 3a |Format: |@"local:|
|00000a00| 2f 2f 25 40 2f 25 40 22 | 2c 20 5b 73 65 6c 66 20 |//%@/%@"|, [self |
|00000a10| 70 61 74 68 5d 2c 20 5b | 73 65 6c 66 20 66 6f 6c |path], [|self fol|
|00000a20| 64 65 72 6e 61 6d 65 5d | 5d 3b 0a 20 20 20 20 7d |dername]|];. }|
|00000a30| 0a 20 20 65 6c 73 65 20 | 69 66 20 20 28 20 5b 5b |. else |if ( [[|
|00000a40| 73 65 6c 66 20 70 72 6f | 74 6f 63 6f 6c 5d 20 63 |self pro|tocol] c|
|00000a50| 61 73 65 49 6e 73 65 6e | 73 69 74 69 76 65 43 6f |aseInsen|sitiveCo|
|00000a60| 6d 70 61 72 65 3a 20 40 | 22 49 4d 41 50 22 5d 20 |mpare: @|"IMAP"] |
|00000a70| 3d 3d 20 4e 53 4f 72 64 | 65 72 65 64 53 61 6d 65 |== NSOrd|eredSame|
|00000a80| 20 29 0a 20 20 20 20 7b | 0a 20 20 20 20 20 20 72 | ). {|. r|
|00000a90| 65 74 75 72 6e 20 5b 4e | 53 53 74 72 69 6e 67 20 |eturn [N|SString |
|00000aa0| 73 74 72 69 6e 67 57 69 | 74 68 46 6f 72 6d 61 74 |stringWi|thFormat|
|00000ab0| 3a 20 40 22 69 6d 61 70 | 3a 2f 2f 25 40 40 25 40 |: @"imap|://%@@%@|
|00000ac0| 2f 25 40 22 2c 20 5b 73 | 65 6c 66 20 75 73 65 72 |/%@", [s|elf user|
|00000ad0| 6e 61 6d 65 5d 2c 20 5b | 73 65 6c 66 20 68 6f 73 |name], [|self hos|
|00000ae0| 74 5d 2c 20 5b 73 65 6c | 66 20 66 6f 6c 64 65 72 |t], [sel|f folder|
|00000af0| 6e 61 6d 65 5d 5d 3b 0a | 20 20 20 20 7d 0a 20 20 |name]];.| }. |
|00000b00| 65 6c 73 65 0a 20 20 20 | 20 7b 0a 20 20 20 20 20 |else. | {. |
|00000b10| 20 72 65 74 75 72 6e 20 | 5b 4e 53 53 74 72 69 6e | return |[NSStrin|
|00000b20| 67 20 73 74 72 69 6e 67 | 57 69 74 68 46 6f 72 6d |g string|WithForm|
|00000b30| 61 74 3a 20 40 22 70 6f | 70 33 3a 2f 2f 25 40 40 |at: @"po|p3://%@@|
|00000b40| 25 40 22 2c 20 5b 73 65 | 6c 66 20 75 73 65 72 6e |%@", [se|lf usern|
|00000b50| 61 6d 65 5d 2c 20 5b 73 | 65 6c 66 20 68 6f 73 74 |ame], [s|elf host|
|00000b60| 5d 5d 3b 0a 20 20 20 20 | 7d 0a 7d 0a 0a 40 65 6e |]];. |}.}..@en|
|00000b70| 64 0a 0a 0a 2f 2f 0a 2f | 2f 20 50 72 69 76 61 74 |d...//./|/ Privat|
|00000b80| 65 20 6d 65 74 68 6f 64 | 73 0a 2f 2f 0a 40 69 6d |e method|s.//.@im|
|00000b90| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 20 55 52 4c |plementa|tion URL|
|00000ba0| 4e 61 6d 65 20 28 50 72 | 69 76 61 74 65 29 0a 0a |Name (Pr|ivate)..|
|00000bb0| 2f 2f 2f 2f 20 46 49 58 | 4d 45 20 28 66 69 6e 69 |//// FIX|ME (fini|
|00000bc0| 73 68 21 29 0a 2f 2f 20 | 69 6d 61 70 3a 2f 2f 3c |sh!).// |imap://<|
|00000bd0| 69 73 65 72 76 65 72 3e | 2f 3c 66 6f 6c 64 65 72 |iserver>|/<folder|
|00000be0| 6e 61 6d 65 3e 0a 2f 2f | 0a 2f 2f 20 45 78 61 6d |name>.//|.// Exam|
|00000bf0| 70 6c 65 73 3a 20 69 6d | 61 70 3a 2f 2f 6d 69 6e |ples: im|ap://min|
|00000c00| 62 61 72 69 2e 6f 72 67 | 2f 67 72 61 79 2d 63 6f |bari.org|/gray-co|
|00000c10| 75 6e 63 69 6c 3b 55 49 | 44 56 41 4c 49 44 49 54 |uncil;UI|DVALIDIT|
|00000c20| 59 3d 33 38 35 37 35 39 | 30 34 35 2f 3b 55 49 44 |Y=385759|045/;UID|
|00000c30| 3d 32 30 0a 2f 2f 20 20 | 20 20 20 20 20 20 20 20 |=20.// | |
|00000c40| 20 69 6d 61 70 3a 2f 2f | 6d 69 63 68 61 65 6c 40 | imap://|michael@|
|00000c50| 6d 69 6e 62 61 72 69 2e | 6f 72 67 2f 75 73 65 72 |minbari.|org/user|
|00000c60| 73 2e 2a 3b 74 79 70 65 | 3d 6c 69 73 74 0a 2f 2f |s.*;type|=list.//|
|00000c70| 20 20 20 20 20 20 20 20 | 20 20 20 69 6d 61 70 3a | | imap:|
|00000c80| 2f 2f 70 73 69 63 6f 72 | 70 2e 6f 72 67 2f 7e 70 |//psicor|p.org/~p|
|00000c90| 65 74 65 72 2f 25 45 36 | 25 39 37 25 41 35 25 45 |eter/%E6|%97%A5%E|
|00000ca0| 36 25 39 43 25 41 43 25 | 45 38 25 41 41 25 39 45 |6%9C%AC%|E8%AA%9E|
|00000cb0| 2f 0a 2f 2f 20 20 20 20 | 20 20 20 20 20 20 20 69 |/.// | i|
|00000cc0| 6d 61 70 3a 2f 2f 3b 41 | 55 54 48 3d 4b 45 52 42 |map://;A|UTH=KERB|
|00000cd0| 45 52 4f 53 5f 56 34 40 | 6d 69 6e 62 61 72 69 2e |EROS_V4@|minbari.|
|00000ce0| 6f 72 67 2f 67 72 61 79 | 2d 63 6f 75 6e 63 69 6c |org/gray|-council|
|00000cf0| 2f 3b 75 69 64 3d 32 30 | 2f 3b 73 65 63 74 69 6f |/;uid=20|/;sectio|
|00000d00| 6e 3d 31 2e 32 0a 2f 2f | 20 20 20 20 20 20 20 20 |n=1.2.//| |
|00000d10| 20 20 20 69 6d 61 70 3a | 2f 2f 3b 41 55 54 48 3d | imap:|//;AUTH=|
|00000d20| 2a 40 6d 69 6e 62 61 72 | 69 2e 6f 72 67 2f 67 72 |*@minbar|i.org/gr|
|00000d30| 61 79 25 32 30 63 6f 75 | 6e 63 69 6c 3f 53 55 42 |ay%20cou|ncil?SUB|
|00000d40| 4a 45 43 54 25 32 30 73 | 68 61 64 6f 77 73 0a 2f |JECT%20s|hadows./|
|00000d50| 2f 0a 2f 2f 20 4e 6f 74 | 65 3a 20 54 68 65 20 69 |/.// Not|e: The i|
|00000d60| 6d 61 70 3a 2f 2f 20 70 | 61 72 74 20 69 73 6e 27 |map:// p|art isn'|
|00000d70| 74 20 70 72 65 73 65 6e | 74 20 69 6e 20 74 68 65 |t presen|t in the|
|00000d80| 20 72 65 63 65 69 76 65 | 64 20 73 74 72 69 6e 67 | receive|d string|
|00000d90| 20 61 73 20 70 61 72 61 | 6d 65 74 65 72 2e 0a 2f | as para|meter../|
|00000da0| 2f 0a 2d 20 28 76 6f 69 | 64 29 20 5f 64 65 63 6f |/.- (voi|d) _deco|
|00000db0| 64 65 49 4d 41 50 3a 20 | 28 4e 53 53 74 72 69 6e |deIMAP: |(NSStrin|
|00000dc0| 67 20 2a 29 20 74 68 65 | 53 74 72 69 6e 67 0a 7b |g *) the|String.{|
|00000dd0| 0a 20 20 4e 53 52 61 6e | 67 65 20 72 31 2c 20 72 |. NSRan|ge r1, r|
|00000de0| 32 3b 0a 0a 20 20 2f 2f | 20 57 65 20 64 65 63 6f |2;.. //| We deco|
|00000df0| 64 65 20 74 68 65 20 75 | 73 65 72 6e 61 6d 65 0a |de the u|sername.|
|00000e00| 20 20 72 31 20 3d 20 5b | 74 68 65 53 74 72 69 6e | r1 = [|theStrin|
|00000e10| 67 20 72 61 6e 67 65 4f | 66 53 74 72 69 6e 67 3a |g rangeO|fString:|
|00000e20| 20 40 22 40 22 0a 09 09 | 20 20 6f 70 74 69 6f 6e | @"@"...| option|
|00000e30| 73 3a 20 4e 53 42 61 63 | 6b 77 61 72 64 73 53 65 |s: NSBac|kwardsSe|
|00000e40| 61 72 63 68 5d 3b 0a 20 | 20 0a 20 20 69 66 20 28 |arch];. | . if (|
|00000e50| 20 72 31 2e 6c 65 6e 67 | 74 68 20 29 0a 20 20 20 | r1.leng|th ). |
|00000e60| 20 7b 0a 20 20 20 20 20 | 20 75 73 65 72 6e 61 6d | {. | usernam|
|00000e70| 65 20 3d 20 5b 74 68 65 | 53 74 72 69 6e 67 20 73 |e = [the|String s|
|00000e80| 75 62 73 74 72 69 6e 67 | 54 6f 49 6e 64 65 78 3a |ubstring|ToIndex:|
|00000e90| 20 72 31 2e 6c 6f 63 61 | 74 69 6f 6e 5d 3b 0a 20 | r1.loca|tion];. |
|00000ea0| 20 20 20 20 20 52 45 54 | 41 49 4e 28 75 73 65 72 | RET|AIN(user|
|00000eb0| 6e 61 6d 65 29 3b 0a 20 | 20 20 20 7d 0a 20 20 65 |name);. | }. e|
|00000ec0| 6c 73 65 0a 20 20 20 20 | 7b 0a 20 20 20 20 20 20 |lse. |{. |
|00000ed0| 72 31 2e 6c 6f 63 61 74 | 69 6f 6e 20 3d 20 30 3b |r1.locat|ion = 0;|
|00000ee0| 0a 20 20 20 20 7d 0a 20 | 20 0a 20 20 72 32 20 3d |. }. | . r2 =|
|00000ef0| 20 5b 74 68 65 53 74 72 | 69 6e 67 20 72 61 6e 67 | [theStr|ing rang|
|00000f00| 65 4f 66 53 74 72 69 6e | 67 3a 20 40 22 2f 22 0a |eOfStrin|g: @"/".|
|00000f10| 09 09 20 20 6f 70 74 69 | 6f 6e 73 3a 20 30 0a 09 |.. opti|ons: 0..|
|00000f20| 09 20 20 72 61 6e 67 65 | 3a 20 4e 53 4d 61 6b 65 |. range|: NSMake|
|00000f30| 52 61 6e 67 65 28 72 31 | 2e 6c 6f 63 61 74 69 6f |Range(r1|.locatio|
|00000f40| 6e 2c 20 5b 74 68 65 53 | 74 72 69 6e 67 20 6c 65 |n, [theS|tring le|
|00000f50| 6e 67 74 68 5d 20 2d 20 | 72 31 2e 6c 6f 63 61 74 |ngth] - |r1.locat|
|00000f60| 69 6f 6e 29 5d 3b 0a 20 | 20 0a 20 20 69 66 20 28 |ion)];. | . if (|
|00000f70| 20 72 31 2e 6c 65 6e 67 | 74 68 20 29 0a 20 20 20 | r1.leng|th ). |
|00000f80| 20 7b 0a 20 20 20 20 20 | 20 68 6f 73 74 20 3d 20 | {. | host = |
|00000f90| 5b 74 68 65 53 74 72 69 | 6e 67 20 73 75 62 73 74 |[theStri|ng subst|
|00000fa0| 72 69 6e 67 57 69 74 68 | 52 61 6e 67 65 3a 20 4e |ringWith|Range: N|
|00000fb0| 53 4d 61 6b 65 52 61 6e | 67 65 28 72 31 2e 6c 6f |SMakeRan|ge(r1.lo|
|00000fc0| 63 61 74 69 6f 6e 20 2b | 20 31 2c 20 72 32 2e 6c |cation +| 1, r2.l|
|00000fd0| 6f 63 61 74 69 6f 6e 20 | 2d 20 72 31 2e 6c 6f 63 |ocation |- r1.loc|
|00000fe0| 61 74 69 6f 6e 20 2d 20 | 31 29 5d 3b 0a 20 20 20 |ation - |1)];. |
|00000ff0| 20 7d 0a 20 20 65 6c 73 | 65 0a 20 20 20 20 7b 0a | }. els|e. {.|
|00001000| 20 20 20 20 20 20 68 6f | 73 74 20 3d 20 5b 74 68 | ho|st = [th|
|00001010| 65 53 74 72 69 6e 67 20 | 73 75 62 73 74 72 69 6e |eString |substrin|
|00001020| 67 57 69 74 68 52 61 6e | 67 65 3a 20 4e 53 4d 61 |gWithRan|ge: NSMa|
|00001030| 6b 65 52 61 6e 67 65 28 | 72 31 2e 6c 6f 63 61 74 |keRange(|r1.locat|
|00001040| 69 6f 6e 2c 20 72 32 2e | 6c 6f 63 61 74 69 6f 6e |ion, r2.|location|
|00001050| 20 2d 20 72 31 2e 6c 6f | 63 61 74 69 6f 6e 29 5d | - r1.lo|cation)]|
|00001060| 3b 0a 20 20 20 20 7d 0a | 20 20 0a 20 20 52 45 54 |;. }.| . RET|
|00001070| 41 49 4e 28 68 6f 73 74 | 29 3b 0a 0a 20 20 66 6f |AIN(host|);.. fo|
|00001080| 6c 64 65 72 6e 61 6d 65 | 20 3d 20 5b 74 68 65 53 |ldername| = [theS|
|00001090| 74 72 69 6e 67 20 73 75 | 62 73 74 72 69 6e 67 46 |tring su|bstringF|
|000010a0| 72 6f 6d 49 6e 64 65 78 | 3a 20 28 72 32 2e 6c 6f |romIndex|: (r2.lo|
|000010b0| 63 61 74 69 6f 6e 20 2b | 20 31 29 5d 3b 0a 20 20 |cation +| 1)];. |
|000010c0| 52 45 54 41 49 4e 28 66 | 6f 6c 64 65 72 6e 61 6d |RETAIN(f|oldernam|
|000010d0| 65 29 3b 0a 0a 20 20 2f | 2f 4e 53 44 65 62 75 67 |e);.. /|/NSDebug|
|000010e0| 4c 6f 67 28 40 22 7c 25 | 40 7c 20 7c 25 40 7c 20 |Log(@"|%|@| |%@| |
|000010f0| 7c 25 40 7c 22 2c 20 75 | 73 65 72 6e 61 6d 65 2c ||%@|", u|sername,|
|00001100| 20 68 6f 73 74 2c 20 66 | 6f 6c 64 65 72 6e 61 6d | host, f|oldernam|
|00001110| 65 29 3b 0a 7d 0a 0a 0a | 2f 2f 0a 2f 2f 20 6c 6f |e);.}...|//.// lo|
|00001120| 63 61 6c 3a 2f 2f 3c 70 | 61 74 68 3e 2f 3c 66 6f |cal://<p|ath>/<fo|
|00001130| 6c 64 65 72 6e 61 6d 65 | 3e 20 28 66 75 6c 6c 20 |ldername|> (full |
|00001140| 70 61 74 68 29 0a 2f 2f | 0a 2f 2f 20 4e 6f 74 65 |path).//|.// Note|
|00001150| 3a 20 54 68 65 20 6c 6f | 63 61 6c 3a 2f 2f 20 70 |: The lo|cal:// p|
|00001160| 61 72 74 20 69 73 6e 27 | 74 20 70 72 65 73 65 6e |art isn'|t presen|
|00001170| 74 20 69 6e 20 74 68 65 | 20 72 65 63 65 69 76 65 |t in the| receive|
|00001180| 64 20 73 74 72 69 6e 67 | 20 61 73 20 70 61 72 61 |d string| as para|
|00001190| 6d 65 74 65 72 2e 0a 2f | 2f 0a 2d 20 28 76 6f 69 |meter../|/.- (voi|
|000011a0| 64 29 20 5f 64 65 63 6f | 64 65 4c 6f 63 61 6c 3a |d) _deco|deLocal:|
|000011b0| 20 28 4e 53 53 74 72 69 | 6e 67 20 2a 29 20 74 68 | (NSStri|ng *) th|
|000011c0| 65 53 74 72 69 6e 67 0a | 7b 0a 20 20 2f 2f 20 49 |eString.|{. // I|
|000011d0| 66 20 6c 6f 63 61 6c 4d | 61 69 6c 44 69 72 65 63 |f localM|ailDirec|
|000011e0| 74 6f 72 79 50 61 74 68 | 20 69 73 20 6e 69 6c 2c |toryPath| is nil,|
|000011f0| 20 77 65 20 72 65 74 75 | 72 6e 20 74 68 65 20 6c | we retu|rn the l|
|00001200| 61 73 74 20 70 61 74 68 | 20 63 6f 6d 70 6f 6e 65 |ast path| compone|
|00001210| 6e 74 0a 20 20 2f 2f 20 | 6f 66 20 74 68 65 20 55 |nt. // |of the U|
|00001220| 52 4c 20 61 73 20 74 68 | 65 20 66 6f 6c 64 65 72 |RL as th|e folder|
|00001230| 6e 61 6d 65 2e 0a 20 20 | 69 66 20 28 20 21 70 61 |name.. |if ( !pa|
|00001240| 74 68 20 29 0a 20 20 20 | 20 7b 0a 20 20 20 20 20 |th ). | {. |
|00001250| 20 66 6f 6c 64 65 72 6e | 61 6d 65 20 3d 20 5b 74 | foldern|ame = [t|
|00001260| 68 65 53 74 72 69 6e 67 | 20 6c 61 73 74 50 61 74 |heString| lastPat|
|00001270| 68 43 6f 6d 70 6f 6e 65 | 6e 74 5d 3b 0a 20 20 20 |hCompone|nt];. |
|00001280| 20 20 20 52 45 54 41 49 | 4e 28 66 6f 6c 64 65 72 | RETAI|N(folder|
|00001290| 6e 61 6d 65 29 3b 0a 20 | 20 20 20 20 20 0a 20 20 |name);. | . |
|000012a0| 20 20 20 20 70 61 74 68 | 20 3d 20 5b 74 68 65 53 | path| = [theS|
|000012b0| 74 72 69 6e 67 20 73 75 | 62 73 74 72 69 6e 67 54 |tring su|bstringT|
|000012c0| 6f 49 6e 64 65 78 3a 20 | 28 5b 74 68 65 53 74 72 |oIndex: |([theStr|
|000012d0| 69 6e 67 20 6c 65 6e 67 | 74 68 5d 20 2d 20 5b 66 |ing leng|th] - [f|
|000012e0| 6f 6c 64 65 72 6e 61 6d | 65 20 6c 65 6e 67 74 68 |oldernam|e length|
|000012f0| 5d 29 5d 3b 0a 20 20 20 | 20 20 20 52 45 54 41 49 |])];. | RETAI|
|00001300| 4e 28 70 61 74 68 29 3b | 0a 20 20 20 20 7d 0a 20 |N(path);|. }. |
|00001310| 20 65 6c 73 65 0a 20 20 | 20 20 7b 0a 20 20 20 20 | else. | {. |
|00001320| 20 20 66 6f 6c 64 65 72 | 6e 61 6d 65 20 3d 20 5b | folder|name = [|
|00001330| 74 68 65 53 74 72 69 6e | 67 20 73 75 62 73 74 72 |theStrin|g substr|
|00001340| 69 6e 67 46 72 6f 6d 49 | 6e 64 65 78 3a 20 28 5b |ingFromI|ndex: ([|
|00001350| 70 61 74 68 20 6c 65 6e | 67 74 68 5d 20 2b 20 31 |path len|gth] + 1|
|00001360| 29 5d 3b 0a 20 20 20 20 | 20 20 52 45 54 41 49 4e |)];. | RETAIN|
|00001370| 28 66 6f 6c 64 65 72 6e | 61 6d 65 29 3b 0a 20 0a |(foldern|ame);. .|
|00001380| 20 20 20 20 20 20 2f 2f | 4e 53 44 65 62 75 67 4c | //|NSDebugL|
|00001390| 6f 67 28 40 22 7c 25 40 | 7c 20 7c 25 40 7c 22 2c |og(@"|%@|| |%@|",|
|000013a0| 20 70 61 74 68 2c 20 66 | 6f 6c 64 65 72 6e 61 6d | path, f|oldernam|
|000013b0| 65 29 3b 0a 20 20 20 20 | 7d 0a 7d 0a 0a 0a 2f 2f |e);. |}.}...//|
|000013c0| 0a 2f 2f 20 46 49 58 4d | 45 20 28 66 69 6e 69 73 |.// FIXM|E (finis|
|000013d0| 68 21 29 0a 2f 2f 20 70 | 6f 70 3a 2f 2f 3c 75 73 |h!).// p|op://<us|
|000013e0| 65 72 3e 3b 61 75 74 68 | 3d 3c 61 75 74 68 3e 40 |er>;auth|=<auth>@|
|000013f0| 3c 68 6f 73 74 3e 3a 3c | 70 6f 72 74 3e 0a 2f 2f |<host>:<|port>.//|
|00001400| 0a 2f 2f 20 45 78 61 6d | 70 6c 65 73 3a 20 70 6f |.// Exam|ples: po|
|00001410| 70 3a 2f 2f 72 67 40 6d | 61 69 6c 73 72 76 2e 71 |p://rg@m|ailsrv.q|
|00001420| 75 61 6c 63 6f 6d 6d 2e | 63 6f 6d 0a 2f 2f 20 20 |ualcomm.|com.// |
|00001430| 20 20 20 20 20 20 20 20 | 20 70 6f 70 3a 2f 2f 72 | | pop://r|
|00001440| 67 3b 41 55 54 48 3d 2b | 41 50 4f 50 40 6d 61 69 |g;AUTH=+|APOP@mai|
|00001450| 6c 2e 65 75 64 6f 72 61 | 2e 63 6f 6d 3a 38 31 31 |l.eudora|.com:811|
|00001460| 30 0a 2f 2f 20 20 20 20 | 20 20 20 20 20 20 20 70 |0.// | p|
|00001470| 6f 70 3a 2f 2f 62 61 7a | 3b 41 55 54 48 3d 53 43 |op://baz|;AUTH=SC|
|00001480| 52 41 4d 2d 4d 44 35 40 | 66 6f 6f 2e 62 61 72 0a |RAM-MD5@|foo.bar.|
|00001490| 2f 2f 0a 2f 2f 20 4e 6f | 74 65 3a 20 54 68 65 20 |//.// No|te: The |
|000014a0| 70 6f 70 3a 2f 2f 20 70 | 61 72 74 20 69 73 6e 27 |pop:// p|art isn'|
|000014b0| 74 20 70 72 65 73 65 6e | 74 20 69 6e 20 74 68 65 |t presen|t in the|
|000014c0| 20 72 65 63 65 69 76 65 | 64 20 73 74 72 69 6e 67 | receive|d string|
|000014d0| 20 61 73 20 70 61 72 61 | 6d 65 74 65 72 2e 0a 2f | as para|meter../|
|000014e0| 2f 0a 2d 20 28 76 6f 69 | 64 29 20 5f 64 65 63 6f |/.- (voi|d) _deco|
|000014f0| 64 65 50 4f 50 33 3a 20 | 28 4e 53 53 74 72 69 6e |dePOP3: |(NSStrin|
|00001500| 67 20 2a 29 20 74 68 65 | 53 74 72 69 6e 67 0a 7b |g *) the|String.{|
|00001510| 0a 20 20 4e 53 52 61 6e | 67 65 20 61 52 61 6e 67 |. NSRan|ge aRang|
|00001520| 65 3b 0a 0a 20 20 66 6f | 6c 64 65 72 6e 61 6d 65 |e;.. fo|ldername|
|00001530| 20 3d 20 5b 5b 4e 53 53 | 74 72 69 6e 67 20 61 6c | = [[NSS|tring al|
|00001540| 6c 6f 63 5d 20 69 6e 69 | 74 57 69 74 68 53 74 72 |loc] ini|tWithStr|
|00001550| 69 6e 67 3a 20 40 22 49 | 4e 42 4f 58 22 5d 3b 0a |ing: @"I|NBOX"];.|
|00001560| 20 20 0a 20 20 61 52 61 | 6e 67 65 20 3d 20 5b 74 | . aRa|nge = [t|
|00001570| 68 65 53 74 72 69 6e 67 | 20 72 61 6e 67 65 4f 66 |heString| rangeOf|
|00001580| 53 74 72 69 6e 67 3a 20 | 40 22 40 22 5d 3b 0a 20 |String: |@"@"];. |
|00001590| 20 0a 20 20 75 73 65 72 | 6e 61 6d 65 20 3d 20 5b | . user|name = [|
|000015a0| 74 68 65 53 74 72 69 6e | 67 20 73 75 62 73 74 72 |theStrin|g substr|
|000015b0| 69 6e 67 54 6f 49 6e 64 | 65 78 3a 20 61 52 61 6e |ingToInd|ex: aRan|
|000015c0| 67 65 2e 6c 6f 63 61 74 | 69 6f 6e 5d 3b 0a 20 20 |ge.locat|ion];. |
|000015d0| 52 45 54 41 49 4e 28 75 | 73 65 72 6e 61 6d 65 29 |RETAIN(u|sername)|
|000015e0| 3b 0a 0a 20 20 68 6f 73 | 74 20 3d 20 5b 74 68 65 |;.. hos|t = [the|
|000015f0| 53 74 72 69 6e 67 20 73 | 75 62 73 74 72 69 6e 67 |String s|ubstring|
|00001600| 46 72 6f 6d 49 6e 64 65 | 78 3a 20 28 61 52 61 6e |FromInde|x: (aRan|
|00001610| 67 65 2e 6c 6f 63 61 74 | 69 6f 6e 20 2b 20 31 29 |ge.locat|ion + 1)|
|00001620| 5d 3b 0a 20 20 52 45 54 | 41 49 4e 28 68 6f 73 74 |];. RET|AIN(host|
|00001630| 29 3b 0a 7d 0a 0a 0a 2f | 2f 0a 2f 2f 0a 2f 2f 0a |);.}.../|/.//.//.|
|00001640| 2d 20 28 76 6f 69 64 29 | 20 5f 64 65 63 6f 64 65 |- (void)| _decode|
|00001650| 55 52 4c 3a 20 28 4e 53 | 53 74 72 69 6e 67 20 2a |URL: (NS|String *|
|00001660| 29 20 74 68 65 53 74 72 | 69 6e 67 0a 7b 0a 20 20 |) theStr|ing.{. |
|00001670| 4e 53 52 61 6e 67 65 20 | 61 52 61 6e 67 65 3b 0a |NSRange |aRange;.|
|00001680| 0a 20 20 2f 2f 20 57 65 | 20 66 69 72 73 74 20 64 |. // We| first d|
|00001690| 65 63 6f 64 65 20 6f 75 | 72 20 70 72 6f 74 6f 63 |ecode ou|r protoc|
|000016a0| 6f 6c 2e 0a 20 20 61 52 | 61 6e 67 65 20 3d 20 5b |ol.. aR|ange = [|
|000016b0| 74 68 65 53 74 72 69 6e | 67 20 72 61 6e 67 65 4f |theStrin|g rangeO|
|000016c0| 66 53 74 72 69 6e 67 3a | 20 40 22 3a 2f 2f 22 5d |fString:| @"://"]|
|000016d0| 3b 0a 20 20 0a 20 20 69 | 66 20 28 20 61 52 61 6e |;. . i|f ( aRan|
|000016e0| 67 65 2e 6c 65 6e 67 74 | 68 20 29 0a 20 20 20 20 |ge.lengt|h ). |
|000016f0| 7b 0a 20 20 20 20 20 20 | 4e 53 53 74 72 69 6e 67 |{. |NSString|
|00001700| 20 2a 61 53 74 72 69 6e | 67 3b 0a 0a 20 20 20 20 | *aStrin|g;.. |
|00001710| 20 20 70 72 6f 74 6f 63 | 6f 6c 20 3d 20 5b 74 68 | protoc|ol = [th|
|00001720| 65 53 74 72 69 6e 67 20 | 73 75 62 73 74 72 69 6e |eString |substrin|
|00001730| 67 54 6f 49 6e 64 65 78 | 3a 20 61 52 61 6e 67 65 |gToIndex|: aRange|
|00001740| 2e 6c 6f 63 61 74 69 6f | 6e 5d 3b 0a 20 20 20 20 |.locatio|n];. |
|00001750| 20 20 52 45 54 41 49 4e | 28 70 72 6f 74 6f 63 6f | RETAIN|(protoco|
|00001760| 6c 29 3b 0a 20 20 20 20 | 20 20 0a 20 20 20 20 20 |l);. | . |
|00001770| 20 61 53 74 72 69 6e 67 | 20 3d 20 5b 74 68 65 53 | aString| = [theS|
|00001780| 74 72 69 6e 67 20 73 75 | 62 73 74 72 69 6e 67 46 |tring su|bstringF|
|00001790| 72 6f 6d 49 6e 64 65 78 | 3a 20 28 61 52 61 6e 67 |romIndex|: (aRang|
|000017a0| 65 2e 6c 6f 63 61 74 69 | 6f 6e 20 2b 20 61 52 61 |e.locati|on + aRa|
|000017b0| 6e 67 65 2e 6c 65 6e 67 | 74 68 29 5d 3b 0a 0a 20 |nge.leng|th)];.. |
|000017c0| 20 20 20 20 20 69 66 20 | 28 20 5b 70 72 6f 74 6f | if |( [proto|
|000017d0| 63 6f 6c 20 63 61 73 65 | 49 6e 73 65 6e 73 69 74 |col case|Insensit|
|000017e0| 69 76 65 43 6f 6d 70 61 | 72 65 3a 20 40 22 4c 4f |iveCompa|re: @"LO|
|000017f0| 43 41 4c 22 5d 20 3d 3d | 20 4e 53 4f 72 64 65 72 |CAL"] ==| NSOrder|
|00001800| 65 64 53 61 6d 65 20 29 | 0a 09 7b 0a 09 20 20 5b |edSame )|..{.. [|
|00001810| 73 65 6c 66 20 5f 64 65 | 63 6f 64 65 4c 6f 63 61 |self _de|codeLoca|
|00001820| 6c 3a 20 61 53 74 72 69 | 6e 67 5d 3b 0a 09 7d 0a |l: aStri|ng];..}.|
|00001830| 20 20 20 20 20 20 65 6c | 73 65 20 69 66 20 28 20 | el|se if ( |
|00001840| 5b 70 72 6f 74 6f 63 6f | 6c 20 63 61 73 65 49 6e |[protoco|l caseIn|
|00001850| 73 65 6e 73 69 74 69 76 | 65 43 6f 6d 70 61 72 65 |sensitiv|eCompare|
|00001860| 3a 20 40 22 50 4f 50 33 | 22 5d 20 3d 3d 20 4e 53 |: @"POP3|"] == NS|
|00001870| 4f 72 64 65 72 65 64 53 | 61 6d 65 20 29 0a 09 7b |OrderedS|ame )..{|
|00001880| 0a 09 20 20 5b 73 65 6c | 66 20 5f 64 65 63 6f 64 |.. [sel|f _decod|
|00001890| 65 50 4f 50 33 3a 20 61 | 53 74 72 69 6e 67 5d 3b |ePOP3: a|String];|
|000018a0| 0a 09 7d 0a 20 20 20 20 | 20 20 65 6c 73 65 20 69 |..}. | else i|
|000018b0| 66 20 28 20 5b 70 72 6f | 74 6f 63 6f 6c 20 63 61 |f ( [pro|tocol ca|
|000018c0| 73 65 49 6e 73 65 6e 73 | 69 74 69 76 65 43 6f 6d |seInsens|itiveCom|
|000018d0| 70 61 72 65 3a 20 40 22 | 49 4d 41 50 22 5d 20 3d |pare: @"|IMAP"] =|
|000018e0| 3d 20 4e 53 4f 72 64 65 | 72 65 64 53 61 6d 65 20 |= NSOrde|redSame |
|000018f0| 29 0a 09 7b 0a 09 20 20 | 5b 73 65 6c 66 20 5f 64 |)..{.. |[self _d|
|00001900| 65 63 6f 64 65 49 4d 41 | 50 3a 20 61 53 74 72 69 |ecodeIMA|P: aStri|
|00001910| 6e 67 5d 3b 0a 09 7d 0a | 20 20 20 20 20 20 65 6c |ng];..}.| el|
|00001920| 73 65 0a 09 7b 0a 09 20 | 20 4e 53 44 65 62 75 67 |se..{.. | NSDebug|
|00001930| 4c 6f 67 28 40 22 55 52 | 4c 4e 61 6d 65 3a 20 4d |Log(@"UR|LName: M|
|00001940| 61 6c 66 6f 72 6d 65 64 | 20 55 52 4c 2e 20 55 6e |alformed| URL. Un|
|00001950| 73 75 70 70 6f 72 74 65 | 64 20 70 72 6f 74 6f 63 |supporte|d protoc|
|00001960| 6f 6c 20 73 70 65 63 69 | 66 69 65 64 2e 22 29 3b |ol speci|fied.");|
|00001970| 0a 09 7d 0a 20 20 20 20 | 7d 0a 20 20 65 6c 73 65 |..}. |}. else|
|00001980| 0a 20 20 20 20 7b 0a 20 | 20 20 20 20 20 4e 53 44 |. {. | NSD|
|00001990| 65 62 75 67 4c 6f 67 28 | 40 22 55 52 4c 4e 61 6d |ebugLog(|@"URLNam|
|000019a0| 65 3a 20 4d 61 6c 66 6f | 72 6d 65 64 20 55 52 4c |e: Malfo|rmed URL|
|000019b0| 2e 22 29 3b 0a 20 20 20 | 20 7d 0a 7d 0a 0a 40 65 |.");. | }.}..@e|
|000019c0| 6e 64 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |nd......|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001a10| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|00001a20| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|00001a30| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001b10| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+